package cn.tedu.blackhorse.service;

import cn.tedu.blackhorse.pojo.dto.PermissionAddNewDTO;
import cn.tedu.blackhorse.pojo.dto.PermissionUpdateDTO;
import cn.tedu.blackhorse.pojo.entity.Permission;
import cn.tedu.blackhorse.pojo.vo.PermissionListItemVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IPermissionService {

    //添加新权限
    void addNew(PermissionAddNewDTO permissionAddNewDTO);

    //删除权限
    void deleteById(Long id);

    //修改权限
    void updateById(Long id,PermissionUpdateDTO permissionUpdateDTO);

    //权限列表
    List<PermissionListItemVO> list();

}
